﻿@page
@using Snow.Hcm.Localization;
@using Microsoft.Extensions.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@model Snow.Hcm.Web.Pages.Employees.CreateModalModel
@inject IStringLocalizer<HcmResource> L
@{
    Layout = null;
}
<form method="post" action="@Url.Page("/Employees/CreateModal")">
    <abp-modal>
        <abp-modal-header title="@L["NewEmployee"].Value"></abp-modal-header>
        <abp-modal-body>
            <abp-input asp-for="Employee.Name" />
            @*@await Component.InvokeAsync("Position")
        <abp-input asp-for="Employee.PositionId" />*@
            <abp-input asp-for="Employee.PhoneNumber" type="number" />
            <abp-input asp-for="Employee.IdCardNumber" />
            <div class="form-row">
                <div class="form-group col-md-9">
                    <label asp-for="Employee.Birthday" class="control-label"></label>
                    <input asp-for="Employee.Birthday" class="form-control" />
                    <span asp-validation-for="Employee.Birthday" class="text-danger"></span>
                </div>
                <div class="form-group col-md-3">
                    <label asp-for="Employee.Calendar" class="control-label"></label>
                    <select asp-for="Employee.Calendar" class="form-control custom-select" asp-items="Model.Calendars">
                    </select>
                </div>
            </div>
            <abp-select asp-for="Employee.Gender" />
            <abp-select asp-for="Employee.MaritalStatus" />
            <abp-select asp-for="Employee.PoliticalStatus" />
            @await Component.InvokeAsync("Region", new { parentId = 100000 })
            <abp-input asp-for="Employee.ProvinceId" />
            <abp-input asp-for="Employee.CityId" />
            <abp-input asp-for="Employee.AreaId" />
            <abp-input asp-for="Employee.Address" />

        </abp-modal-body>
        <abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>
    </abp-modal>
</form>